package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-03-19
 */
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 零售收银状态1正常 2锁定
     */
    private Integer retailStatus;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    private String salt;

    /**
     * 员工姓名
     */
    private String name;

    /**
     * 性别 1男 2女
     */
    private Integer sex;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 地址
     */
    private String address;

    /**
     * 状态 1正常 2锁定
     */
    private Integer status;

    /**
     * 价格权限(可多选用|分割，例如：1|2|3)
            1零售价 2批发价 3参考进货价 4最低售价 5成本价 6等级价
     */
    private String price;

    /**
     * 是否有查看他人单据的权限
     */
    private Boolean viewOtherOrder;

    /**
     * 是否可以作废他人的单据
     */
    private Boolean cancelOtherOrder;

    /**
     * 是否可以查看关联他人的客户和客户应收欠款，开单时也可以选择关联他人的客户
     */
    private Boolean viewOtherCustom;

    /**
     * 所属门店
     */
    private String storeId;

    /**
     * 是否可以查看其他仓库库存
     */
    private Boolean viewOtherHouse;

    /**
     * 是否可以从其他仓库调拨
     */
    private Boolean transferOtherHouse;

    private Date time;

    /**
     * 所属公司
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Integer getRetailStatus() {
        return retailStatus;
    }

    public void setRetailStatus(Integer retailStatus) {
        this.retailStatus = retailStatus;
    }
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }
    public Boolean getViewOtherOrder() {
        return viewOtherOrder;
    }

    public void setViewOtherOrder(Boolean viewOtherOrder) {
        this.viewOtherOrder = viewOtherOrder;
    }
    public Boolean getCancelOtherOrder() {
        return cancelOtherOrder;
    }

    public void setCancelOtherOrder(Boolean cancelOtherOrder) {
        this.cancelOtherOrder = cancelOtherOrder;
    }
    public Boolean getViewOtherCustom() {
        return viewOtherCustom;
    }

    public void setViewOtherCustom(Boolean viewOtherCustom) {
        this.viewOtherCustom = viewOtherCustom;
    }
    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }
    public Boolean getViewOtherHouse() {
        return viewOtherHouse;
    }

    public void setViewOtherHouse(Boolean viewOtherHouse) {
        this.viewOtherHouse = viewOtherHouse;
    }
    public Boolean getTransferOtherHouse() {
        return transferOtherHouse;
    }

    public void setTransferOtherHouse(Boolean transferOtherHouse) {
        this.transferOtherHouse = transferOtherHouse;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "User{" +
            "id=" + id +
            ", retailStatus=" + retailStatus +
            ", username=" + username +
            ", password=" + password +
            ", salt=" + salt +
            ", name=" + name +
            ", sex=" + sex +
            ", phone=" + phone +
            ", email=" + email +
            ", address=" + address +
            ", status=" + status +
            ", price=" + price +
            ", viewOtherOrder=" + viewOtherOrder +
            ", cancelOtherOrder=" + cancelOtherOrder +
            ", viewOtherCustom=" + viewOtherCustom +
            ", storeId=" + storeId +
            ", viewOtherHouse=" + viewOtherHouse +
            ", transferOtherHouse=" + transferOtherHouse +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
